package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.SysCheck;
import com.ruoyi.system.domain.SysContractMoney;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysBalancePaymentMapper;
import com.ruoyi.system.domain.SysBalancePayment;
import com.ruoyi.system.service.ISysBalancePaymentService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-20
 */
@Service
public class SysBalancePaymentServiceImpl implements ISysBalancePaymentService 
{
    @Autowired
    private SysBalancePaymentMapper sysBalancePaymentMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param itemNo 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysBalancePayment selectSysBalancePaymentById(String itemNo)
    {
        return sysBalancePaymentMapper.selectSysBalancePaymentById(itemNo);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysBalancePayment 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysBalancePayment> selectSysBalancePaymentList(SysBalancePayment sysBalancePayment)
    {
        return sysBalancePaymentMapper.selectSysBalancePaymentList(sysBalancePayment);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysBalancePayment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysBalancePayment(SysBalancePayment sysBalancePayment)
    {
        sysBalancePayment.setCreateTime(DateUtils.getNowDate());
        return sysBalancePaymentMapper.insertSysBalancePayment(sysBalancePayment);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param itemNo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysBalancePayment(String itemNo)
    {
        return sysBalancePaymentMapper.updateSysBalancePayment(itemNo);
    }




    /**
     * 新增【尾款支付】信息
     *
     * @param sysBalancePayment
     * @return 结果
     */
    @Override
    public int addSysBalancePayment(SysBalancePayment sysBalancePayment) {

        return sysBalancePaymentMapper.addSysBalancePayment(sysBalancePayment);
    }

    @Override
    public Long insertFileUpload(SysBalancePayment sysBalancePayment) {
        return sysBalancePaymentMapper.insertFileUpload(sysBalancePayment);
    }

    @Override
    public Long uploadPicture(SysBalancePayment sysBalancePayment) {
        return sysBalancePaymentMapper.insertFileUpload(sysBalancePayment);
    }
}
